﻿using MessagePack;

namespace Service.Model
{
    /// <summary>
    /// 自动部署的参数设置
    /// </summary>
    [MessagePackObject]
    public class AutomaticConfig
    {
        /// <summary>
        /// 邮箱
        /// </summary>
        [Key(0)]
        public string Email { get; set; }=string.Empty;

        /// <summary>
        /// 目标域名 *.domain.com
        /// </summary>
        [Key(1)]
        public string Domain { get; set; } = string.Empty;
        /// <summary>
        /// DNS修改的配置
        /// </summary>
        [Key(2)]
        public DnsEditorConfig DnsEditorConfig { get; set; }
        /// <summary>
        /// 分发证书配置
        /// </summary>
        [Key(3)]
        public List<CertHandOutConfig> CertHandOutConfig { get; set; }
    }
}
